﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;
using Microsoft.SharePoint.Administration;

namespace MicroLink.SharePointServices.WebApplications
{
    public static class WebApplicationManager
    {
        public static Collection<string> WebApplications
        {
            get
            {
                Collection<string> collection = new Collection<string>();
                foreach (SPWebApplication webApp in SPWebService.ContentService.WebApplications)
                    collection.Add(webApp.Name);
                return collection;
            }
        }
    }
}
